package com.qiu.wbpostman.entity;

import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserMail {
	@PrimaryKey
	private Long id;    // 用户微博的id

	@Persistent
	private String userName;// 用户名
	@Persistent
	private String email;//邮箱
	private String certificateCode;// 随机生成的验证码
	private int valid; //有效标记位
	@Persistent
	private Date createDate; // 创建时间 
	
	public UserMail(){}
	
	public UserMail(Long id, String userName, String email,Date createDate) {
		this.id = id;
		this.userName = userName;
		this.email = email;
		this.createDate = createDate;
	}

	public long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getCertificateCode() {
		return certificateCode;
	}
	public void setCertificateCode(String certificateCode) {
		this.certificateCode = certificateCode;
	}
	public int getValid() {
		return valid;
	}
	public void setValid(int valid) {
		this.valid = valid;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}
